package com.kkb.domain;

import com.kkb.Document;
import com.kkb.domain.enums.Property;

import java.util.Optional;

/**
 * @Author kkb
 * @Description HasModel 型号类
 * @Date 2024/8/1 15:26
 * @Version 1.0
 */

public interface HasModel extends Document {
    default Optional<String> getModel() {
        return Optional.ofNullable((String) get(Property.MODEL.toString()));
    }
}
